package com.hello.tab;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class helloActivity extends Activity implements OnClickListener{
	
	private Button btn;
	private Context context = this;
	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.hello);
	
	Button btn = (Button) findViewById(R.id.btn);
	TextView textView1 = (TextView)findViewById(R.id.textView1);
	btn.setOnClickListener(this);
	
	Bundle bundle = getIntent().getExtras();
	String hello = bundle.getString("hello");
	Toast.makeText(getApplicationContext(), hello, Toast.LENGTH_LONG);
	
	}
	public void onClick(View v) {
		
		
		
		
		Intent intent = new Intent(context,HellotapActivity.class);
		intent.putExtra("hello","1");
		context.startActivity(intent);
		
	}

}
